// export default function ({ store, redirect }) {
//   store.app.router.beforeEach((to, from, next) => {
//     if (process.client && localStorage.getItem("language")) {
//       store.commit("setLanguage", localStorage.getItem("language"));
//     }
//     let language = store.getters.language;
//     if (to.path == "/" && language && language != "en") {
//       next({ path: language });
//     } else if (language && language == "en") {
//       next({ path: "/" });
//     } else {
//       next();
//     }
//   });
// }
